﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Scoreboard.Interfaces;
using Scoreboard.Basement;
using Scoreboard.Basement.Views;
using System.Linq;

namespace Scoreboard.Main
{
	public class PagesService : IPagesService
	{
		#region Singleton implementation

		private static readonly PagesService _instance = new PagesService();

		static PagesService()
		{ 
		}

		private PagesService()
		{
		}

		public static PagesService Instance
		{
			get
			{				
				return _instance;
			}
		}

		#endregion

		private ShellViewModel _shellViewModel;		

		public void RegisterShell(ShellViewModel shell)
		{			
			_shellViewModel = shell;			
		}

		public void AddPage(PageBase page)
		{
			_shellViewModel.AddPage(page);
		}

		public void AddDialog(DialogBase dialog)
		{
			_shellViewModel.AddDialog(dialog);
		}
	}
}
